﻿@using BotDetector.Resources

@{
    ViewBag.Title = "Train";
}

<div class="row">
    <div class="col-md-10">
        <br />
        <p style="font-size:25px">@ViewBag.RetrainMessage</p>
        <hr />
        <p>@Html.Raw(ViewResources.RetrainExplanationMessage)</p>
    </div>
</div>
<div class="row">
    <div class="col-md-5">
        @using (Html.BeginForm("AddBotFiles", "Home", FormMethod.Post, new { enctype = "multipart/form-data" }))
        {
            <h3 style="color:red">@ViewResources.UploadBotFileTrainMessage</h3>
            <div class="form-inline">
                <div class="form-group">
                    <input type="file" name="files" value="" multiple="multiple" />
                </div>
                <div class="form-group">
                    <input type="submit" class="btn btn-default" value="Upload Files" title="Upload" />
                </div>
            </div>
        }

        @using (Html.BeginForm("AddNonbotFiles", "Home", FormMethod.Post, new { enctype = "multipart/form-data" }))
        {
            <h3 style="color:green">@ViewResources.UploadNonbotFileTrainMessage</h3>
            <div class="form-inline">
                <div class="form-group">
                    <input type="file" name="files" value="" multiple="multiple" />
                </div>
                <div class="form-group">
                    <input type="submit" class="btn btn-default" value="Upload Files" title="Upload" />
                </div>
            </div>
        }
        <br />
        <p>@ViewBag.MessageBot</p>
        <br />
    </div>
</div>
<div class="row">
    <div class="col-md-4" style="text-align:center;">
        <p style="color:black;font-size:22px">@ViewResources.RetrainButtonInfoMessage</p>
        <span>
            <a href='@Url.Action("Retrain", "Home")'>
                <input type='button' class="btn btn-info" value='@ViewResources.Retrain' />
            </a>
        </span>
    </div>
</div>


